using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;

namespace ConsoleApplication2.Models.Mapping
{
    public class TPI_LogLineMap : EntityTypeConfiguration<TPI_LogLine>
    {
        public TPI_LogLineMap()
        {
            // Primary Key
            this.HasKey(t => t.id);

            // Properties
            this.Property(t => t.Line)
                .HasMaxLength(200);

            // Table & Column Mappings
            this.ToTable("TPI_LogLine");
            this.Property(t => t.id).HasColumnName("id");
            this.Property(t => t.Log).HasColumnName("Log");
            this.Property(t => t.Line).HasColumnName("Line");
        }
    }
}
